<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改商户')" />
	<th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<!--		<form class="form-horizontal m" id="form-TbCategory-edit" th:object="${category}">-->
<!--			<input name="TbCategoryId" type="hidden" th:field="*{categoryId}" />-->
		<form class="form-horizontal m" id="form-Commodity-edit" th:object="${tbBusiness}">
			<input  name="businessId" type="hidden" th:field="*{businessId}"/>

			<div class="form-group">
				<label class="col-sm-3 control-label ">商家状态：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="businessStatus" id="businessStatus" th:field="*{businessStatus}" >
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">手机：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="phone" id="phone" th:field="*{phone}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">邮箱：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="email" id="email" th:field="*{email}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">公司名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compName" id="compName" th:field="*{compName}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">公司手机：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compMobile" id="compMobile"  th:field="*{compMobile}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">公司电话：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compPhone" id="compPhone"  th:field="*{compPhone}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">公司详细地址：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compAddress" id="compAddress"  th:field="*{compAddress}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">联系人姓名：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conName" id="conName"  th:field="*{conName}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">联系人QQ：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conQq" id="conQq"  th:field="*{conQq}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">联系人手机：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conMobile" id="conMobile"  th:field="*{conMobile}"   maxlength=11>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">联系人EMAIL：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conEmail" id="conEmail"  th:field="*{conEmail}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">营业执照号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="licenseNum" id="licenseNum"  th:field="*{licenseNum}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">税务登记证号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="taxregistNum" id="taxregistNum"   th:field="*{taxregistNum}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">组织机构代码证：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="organNum" id="organNum"   th:field="*{organNum}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">法定代表人：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="legal" id="legal"   th:field="*{legal}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">法定代表人身份证号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="legalIndentity" id="legalIndentity"    th:field="*{legalIndentity}" >
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label ">开户行名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="openbank" id="openbank"   th:field="*{openbank}" >
				</div>
			</div><div class="form-group">
			<label class="col-sm-3 control-label ">开户行支行：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="obBranch" id="obBranch"  th:field="*{obBranch}" >
			</div>
		</div>

			<div class="form-group">
				<label class="col-sm-3 control-label ">银行账号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="bankNum" id="bankNum"   th:field="*{bankNum}" >
				</div>
			</div>
<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label ">创建人：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="createid" id="createid"  th:field="*{createid}" required>-->
<!--				</div>-->
<!--			</div>-->

<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label ">修改人：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="updateUser" id="updateUser"  th:field="*{updateUser}" required>-->
<!--				</div>-->
<!--			</div>-->

			<div class="form-group">
				<label class="col-sm-3 control-label ">是否生效：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="status" id="status"  th:field="*{status}" >
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: ztree-js" />
	<script type="text/javascript">

		var prefix = ctx + "Commoditylist";


		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/editSave", $('#form-Commodity-edit').serialize());
			}
		}

		function doSubmit(index, layero){
			var body = layer.getChildFrame('body', index);
			$("#treeId").val(body.find('#treeId').val());
			$("#treeName").val(body.find('#treeName').val());
			layer.close(index);
		}
	</script>
</body>
</html>
